package 设计模式.flyweeight;

/**
 * @功能
 * @创建时间 2020/5/3
 */
public class Client {
    public static void main(String[] args) {
        CheeseFlyWeight cheese1 = CheeseFlyWayFactory.getCheese("黑色");
        CheeseFlyWeight cheese2 = CheeseFlyWayFactory.getCheese("白色");
        System.out.println(cheese1);
        System.out.println(cheese2);
        System.out.println("=============");
        cheese1.display(new Coordinate(10,10));
        cheese2.display(new Coordinate(20,10));
    }
}
